home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Diamond Collection / The Diamond Collection (Software Vault)(Digital Impact).ISO / cdr47 / sch250.zip / ERRORS.DOC < prev    next >
Text File  |  1995-02-01  |  6KB  |  118 lines

  1.                     
  2.                     Error Detection During Execution
  3.  
  4.   As mentioned above, errors are trapped at run time and displayed in a
  5.   red box on the screen. Error messages are standard Clipper(r) derived
  6.   messages with  hooks to  the development  environment that  point the
  7.   Schooner editor  back to the  line of code  that generated the error.
  8.   This allows  Schooner to  load the file  that contains  the error and
  9.   place the cursor on the line of code with the error.
  10.  
  11.   Error messages  generally describe  the error well.  However, not all
  12.   messages are  easy to trace.  For the most  part, error messages will
  13.   define the  function, the  internal (not Schooner)  line of offending
  14.   code and a description of the error.
  15.  
  16.   The function described  in the error message  will most likely be the
  17.   Schooner named function, but it may be an internal function. If it is
  18.   an  internal  function,  don't panic.  The  error  is  probably  in a
  19.   Schooner command  or variable declaration. Let  Schooner point you to
  20.   the line of Schooner code and fix the error.
  21.  
  22.   Though  rare, some  errors may  generate  a condition  where Schooner
  23.   cannot  point you  back  to the  line  of code.  These  are generally
  24.   database file errors that  corrupt the file handles used by Schooner.
  25.   This does not cause damage. It simply means you have to manually load
  26.   the source code file and find the error yourself.
  27.  
  28.   Even more  rare are those errors  which dump you  back to DOS. Again,
  29.   they rarely cause damage, but you will need to restart Schooner.
  30.  
  31.   Some errors  that can be  generated while in  graphics mode cannot be
  32.   trapped by Schooner. This  most often occurs if your IMGSAVE() and/or
  33.   IMGRESTORE() segment size definition is not evenly divisible into the
  34.   number of  lines of  the image  with which  you are  working. See the
  35.   IMGSAVE() and  IMGRESTORE() functions for more  details. The best way
  36.   to  recover is  to try  blindly typing  the DOS  MODE 80  command and
  37.   pressing ENTER, If  this does not work then  reset your PC. In all of
  38.   our development we have never lost data. It is simply troublesome.
  39.  
  40.   Make liberal use of the  SETEXIT() function to allow you to break out
  41.   of infinite  loop conditions.  In emergencies use  the Alt-C command.
  42.   This will  kill almost  any situation and  return you  to DOS. Simply
  43.   restart Schooner to fix the problem.
  44.  
  45.   The following are some of the more common errors:
  46.  
  47.   Database Required: You attempted to access a non existent database.
  48.  
  49.   Lock Required:  You tried  to perform  a function  which required the
  50.   file or  record to be  locked. Use  the file exclusively  or lock the
  51.   file or record.
  52.  
  53.   Exclusive Required: Similar to above. Use the file exclusively.
  54.  
  55.   Field Numeric Overflow:  You tried to write  a number into a database
  56.   field  where the  size of  the number  is larger  than the  field can
  57.   handle.
  58.  
  59.   Index File Corrupted: You have a damaged index file. Reindex.
  60.  
  61.   Type Mismatch: You tried to join or work on two variables that are of
  62.   a different type.
  63.  
  64.   Subscript Range:  You tried  to use  an array  element that  does not
  65.   exist.  In  rare  situations this  message  may  appear  if  you have
  66.   unbalanced IF..ENDIF or DO WHILE..ENDDO constructs.
  67.  
  68.   Zero Divide: You tried to divide by 0.
  69.  
  70.   Run Error: Occurs when a SHELL() error condition arises.
  71.  
  72.   Open Errors: These can occur  when an error arises during a file open
  73.   attempt. A number  is included with the  error that describes the DOS
  74.   error type.  Refer to your DOS  manual for a  full description of the
  75.   error type.
  76.  
  77.   Print Errors: Generally occur  when the printer is off-line or out of
  78.   paper.
  79.  
  80.   Undefined Identifier:  You tried to  use a variable  that has not yet
  81.   been defined.  Use the  PUBLIC command  to define  it or  assign it a
  82.   value. This can also occur when an IF or DO WHILE statement  tries to
  83.   evaluate  an expression  with an  undefined  variable (EVEN  WHEN THE
  84.   STATEMENT IS NESTED WITHIN  A FALSE CONSTRUCT. This can occur because
  85.   all IF and DO WHILE structures are evaluated in order to maintain the
  86.   internal structure stacks).
  87.  
  88.   Not an Array: You tried to use an array element that does not exist.
  89.  
  90.   Missing External: Generally refers  to misspellings in your code that
  91.   refer to commands or functions.
  92.  
  93.   Internal Error: An ugly one. Could mean a corrupted index file.
  94.  
  95.   Disk Full: Just like it sounds.
  96.  
  97.   Multiple Error:  Several errors  have occurred at  once. Another ugly
  98.   one. You will probable get dumped back to DOS.
  99.  
  100.   Out of  Memory: You have run  out of memory.  Try modifying the above
  101.   listed memory  management variables to  open up some  more memory. In
  102.   particularly  large  applications, try  running  your  code  with the
  103.   SCHOONRT runtime module rather than directly from the editor. This is
  104.   a hassle, but opens up more memory.
  105.  
  106.                        Compiling your Application
  107.  
  108.   For  the most  part,  Schooner  Version 2.50  GUI  is  still compiler
  109.   compatible with the Clipper Summer '87 compiler. However, maintaining
  110.   compiler compatibility was  beginning to restrict our enhancements to
  111.   Schooner and was actually holding back development.
  112.  
  113.   Because of this and due to low demand for the compiler kit, we are no
  114.   longer offering the compiler  kit directly. However, we will be happy
  115.   to work with you and advise you on the tools and techniques necessary
  116.   to  compile your  Schooner  applications.  Please contact  us  at our
  117.   mailing or CompuServe address listed in the README documentation.
  118.